#include "junix.h"
using namespace std;

int main(int argc, char **argv)
{
	std::vector<int> vi(100);
	std::cout<<vi.size()<<std::endl;
	std::cout<<vi.capacity()<<std::endl;
	vi.reserve(200);
	std::cout<<vi.size()<<std::endl;
	std::cout<<vi.capacity()<<std::endl;

	vi.swap(vi);
	std::cout<<vi.size()<<std::endl;
	std::cout<<vi.capacity()<<std::endl;
	std::vector<int> tmp(vi);
	tmp.swap(vi);
	std::cout<<vi.size()<<std::endl;
	std::cout<<vi.capacity()<<std::endl;
	vi.resize(300);
	std::cout<<vi.size()<<std::endl;
	std::cout<<vi.capacity()<<std::endl;
}
